<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$PAGE_TITLE}>-<{$PAGE_TITLE_SUFFIX}></title>
<meta name='keywords' content='<{$PAGE_KEYWORD}>'>
<meta name='description' content='<{$PAGE_DESCRIPTION}>'>
<link rel="stylesheet" href="<{$SKIN_FOLDER}>Css/index.css" />
<link rel="stylesheet" type="text/css" href="<{$SKIN_FOLDER}>Plus/bxSlider/bx_styles.css" />
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/jquery-1.4.4.min.js"></script>
<link rel="stylesheet" type="text/css" href="<{$SKIN_FOLDER}>Plus/autovalidate/style.css"/>
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/autovalidate/validate.js"></script>
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/form.js"></script>
<script charset="UTF-8" src="<{$SKIN_FOLDER}>Plus/artdialog/artDialog.min.js"></script>
<script type='text/javascript' src="<{$SKIN_FOLDER}>Plus/common.js"></script>
<{block name='head'}><{/block}>
</head>
<body class="index">
<div class="container">
	<{include file='inc_top_nav.html'}>
	<{include file='inc_head_menu.html'}>
	</div>	
<{block name='body'}><{/block}>
<div class="help m_10">
		<div class="cont clearfix">
									
					</div>
	</div>
	<{include file='inc_footer.html'}>
</div>
    <script type='text/javascript' src='<{$SKIN_FOLDER}>Plus/site.js'></script>
<script type='text/javascript'>
	$('input:text[name="word"]').bind({
		keyup:function(){autoComplete('index.php?m=autoComplete','index.php?m=Product_Search&word=@word@','1');}
	});

	var mycartLateCall = new lateCall(200,function(){showCart('index.php?m=showCart')});

	//购物车div层
	$('.mycart').hover(
		function(){
			mycartLateCall.start();
		},
		function(){
			mycartLateCall.stop();
			$('#div_mycart').hide('slow');
		}
	);

	//[ajax]加入购物车
	function joinCart_ajax(id,type)
	{
		var url ="/index.php?controller=simple&action=joinCart&goods_id=@goods_id@&random=@random@&type=@type@";
		url = url.replace("@random@",Math.random()).replace("@goods_id@",id).replace("@type@",type);
		$.getJSON(url,function(content){
			if(content.isError == false)
			{
				var count = parseInt($('[name="mycart_count"]').html());
				$('[name="mycart_count"]').html(count + 1);
				$('.msgbox').hide();
				alert(content.message);
			}
			else
			{
				alert(content.message);
			}
		});
	}

	//列表页加入购物车统一接口
	function joinCart_list(id)
	{
		var url = "/index.php?controller=simple&action=getProducts&id=@id@";
		$.get('/index.php?controller=simple&action=getProducts',{id:id},function(content){
			if(content == '')
			{
				joinCart_ajax(id,'goods');
			}
			else
			{
				$('#product_box_'+id).html(content);
				$('#product_box_'+id).parent().show();
			}
		});
	}
</script>
</body>
</html>